export interface WorkingMemoryTask {
  id: number;
  type: 'digit_span' | 'spatial_sequence' | 'dual_n_back' | 'operation_span' | 'reading_span' | 'visual_matrix';
  instruction: string;
  difficulty: 'easy' | 'medium' | 'hard';
  timeLimit: number;
  minLength: number;
  maxLength: number;
}

export const WORKING_MEMORY_TASKS: WorkingMemoryTask[] = [
  {
    id: 1,
    type: 'digit_span',
    instruction: '记住数字序列并按顺序重复',
    difficulty: 'easy',
    timeLimit: 3000,
    minLength: 3,
    maxLength: 9
  },
  {
    id: 2,
    type: 'digit_span',
    instruction: '记住数字序列并按倒序重复',
    difficulty: 'medium',
    timeLimit: 3000,
    minLength: 3,
    maxLength: 8
  },
  {
    id: 3,
    type: 'spatial_sequence',
    instruction: '记住空间位置的顺序',
    difficulty: 'medium',
    timeLimit: 2000,
    minLength: 3,
    maxLength: 8
  },
  {
    id: 4,
    type: 'dual_n_back',
    instruction: '同时记住位置和声音的N步回溯',
    difficulty: 'hard',
    timeLimit: 3000,
    minLength: 1,
    maxLength: 3
  },
  {
    id: 5,
    type: 'operation_span',
    instruction: '完成数学运算的同时记住字母',
    difficulty: 'hard',
    timeLimit: 5000,
    minLength: 2,
    maxLength: 6
  },
  {
    id: 6,
    type: 'reading_span',
    instruction: '阅读句子判断真假的同时记住最后一个词',
    difficulty: 'hard',
    timeLimit: 4000,
    minLength: 2,
    maxLength: 5
  },
  {
    id: 7,
    type: 'visual_matrix',
    instruction: '记住矩阵中高亮方格的位置',
    difficulty: 'medium',
    timeLimit: 2000,
    minLength: 4,
    maxLength: 10
  }
];

export const DIGIT_POOL = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
export const LETTER_POOL = ['F', 'H', 'J', 'K', 'L', 'N', 'P', 'Q', 'R', 'S', 'T', 'Y'];
export const COLORS = ['red', 'blue', 'green', 'yellow', 'purple', 'orange'];

export const READING_SENTENCES = [
  { text: "苹果是一种水果", correct: true },
  { text: "太阳从西边升起", correct: false },
  { text: "海水是咸的", correct: true },
  { text: "雪花是热的", correct: false },
  { text: "鱼生活在水中", correct: true },
  { text: "月亮比太阳大", correct: false },
  { text: "一年有12个月", correct: true },
  { text: "冰是固体", correct: true },
  { text: "鸟类有羽毛", correct: true },
  { text: "石头会游泳", correct: false },
  { text: "电脑需要电力", correct: true },
  { text: "树木会走路", correct: false },
  { text: "音乐用耳朵听", correct: true },
  { text: "火焰是冷的", correct: false },
  { text: "书籍用来阅读", correct: true }
];

export const MATH_OPERATIONS = [
  { operation: "3 + 4", result: 7 },
  { operation: "8 - 5", result: 3 },
  { operation: "2 × 6", result: 12 },
  { operation: "15 ÷ 3", result: 5 },
  { operation: "9 + 2", result: 11 },
  { operation: "7 - 4", result: 3 },
  { operation: "3 × 5", result: 15 },
  { operation: "12 ÷ 4", result: 3 },
  { operation: "6 + 7", result: 13 },
  { operation: "10 - 3", result: 7 },
  { operation: "4 × 3", result: 12 },
  { operation: "16 ÷ 2", result: 8 },
  { operation: "5 + 8", result: 13 },
  { operation: "11 - 6", result: 5 },
  { operation: "2 × 9", result: 18 }
];